/*
package schoolWork.work05;

import javax.swing.*;
import java.awt.*;

public class test {
    public static void main(String[] args) {
        JFrame frame = new JFrame("JPanel Example");
        frame.setIcon(new ImageIcon("path/to/your/icon.png")); // 设置窗体的图标
        frame.add(new JPanel());
        frame.add(new JPanel());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(300, 200);

        // 设置窗体的风格
        SwingUtilities.changeStyleOfComponent(frame, "Windows");
        SwingUtilities.changeStyleOfComponent(frame.getContentPane(), "Windows");
        SwingUtilities.changeStyleOfComponent(frame.getJMenuBar(), "Windows");
        SwingUtilities.changeStyleOfComponent(frame.getJMenuBar().getParent(), "Windows");

        frame.setVisible(true);
    }
    }
}
*/
